<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/jsp/common/taglibs.jspf" %>
<es:contentHeader/>

<t:base type="jquery,jquery-ui-bootstrap:jquery-ui,nicescroll,application,box"></t:base>
<style type="text/css">
    .error {
        color: red;
    }

    .table td {
        text-align: center;
    }
</style>


<div class="box border purple" style="">
    <div class="box-title">
        <h4><i class="fa fa-bars"></i>服务类型管理</h4>

    </div>

    <div class="box-body" style="display: block;">

        <div data-table="table" class="panel">
            <es:showMessage/>
            <div class="row-fluid tool ui-toolbar">
                <div class="span3">
                    <div class="btn-group">
                        <%-- 当拥有所有权限时才能使用 --%>
                        <%--<shiro:hasPermission name="service:type:create">--%>
                            <a class="btn no-disabled btn-create">
                                <span class="icon-file-alt"></span>
                                新增
                            </a>
                        <%--</shiro:hasPermission>--%>

                        <%--<shiro:hasPermission name="service:type:update">--%>
                            <a id="update" class="btn btn-update">
                                <span class="icon-edit"></span>
                                修改
                            </a>
                        <%--</shiro:hasPermission>--%>
                        <%--<shiro:hasPermission name="service:type:delete">--%>
                            <a class="btn btn-delete">
                                <span class="icon-trash"></span>
                                删除
                            </a>
                        <%--</shiro:hasPermission>--%>
                    </div>
                </div>
                <%--<div class="span9">--%>
                    <%--<%@include file="searchForm.jsp" %>--%>
                <%--</div>--%>
            </div>

            <table id="table" class="sort-table table table-bordered table-hover datatable_single table-striped"
                   data-prefix-url="<%=request.getContextPath()%>/admin/services/type">
                <thead>
                <tr>
                    <th style="width: 80px;">
                        <a class="check-all" href="javascript:;">全选</a>
                        |
                        <a class="reverse-all" href="javascript:;">反选</a>
                    </th>
                    <th sort="id">序号</th>
                    <th>服务类型</th>
                    <th>说明</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${page.content}" var="m" varStatus="index">
                    <tr>
                        <td class="check">
                            <input type="checkbox" name="ids" value="${m.id}"/>
                        </td>
                        <td>${index.count}</td>
                        <td>${m.name}</td>
                        <td>${m.description}</td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
            <es:page page="${pager}"/>
        </div>
    </div>
</div>
<es:contentFooter/>


